package com.acme.task5;

public class TextModifier {
	public static void main(String[] args) {
		if (args.length == 1){ // We have string
			String str = args[0];
			System.out.println(str);
			int strLength = str.length() - 2;
			for (int i = strLength; i >= 0; i--) {
				char charAtIndex = str.charAt(i);
				if (Character.isDigit(charAtIndex)){
					str = str.replace(""+charAtIndex, "");
				}
			}
			str = str.replace("-", "--");
			str = str.replace("+", "++");
			System.out.println(str);
		}
	}
}
